/* src/assets/style/AddDepartment.css */

/* 基础容器样式 - 明亮霓虹背景 */
.department-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(245, 245, 255, 0.95);
    border: 1px solid #a78bfa;
    border-radius: 15px;
    box-shadow:
            0 0 20px rgba(167, 139, 250, 0.4),
            0 0 40px rgba(99, 179, 237, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

/* 霓虹光晕动画效果 */
.department-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle,
            rgba(167, 139, 250, 0.15) 0%,
            rgba(99, 179, 237, 0.15) 50%,
            transparent 70%
    );
    animation: rotate 20s linear infinite;
    z-index: 0;
}

/* 表单元素样式 */
.el-form {
    position: relative;
    z-index: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 标题样式 */
.form-title {
    text-align: center;
    color: #6366f1;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    letter-spacing: 1px;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #a78bfa, #63b3ed);
    box-shadow: 0 0 8px rgba(99, 179, 237, 0.5);
}

/* 输入框样式 */
.el-input__inner {
    border-radius: 8px;
    border: 1px solid #c7d2fe;
    transition: all 0.3s ease;
    padding: 12px 15px;
    color: #4f46e5;
    font-weight: 500;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.el-input__inner:focus {
    border-color: #818cf8;
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.4),
    inset 0 1px 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* 按钮样式 */
.el-button {
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
}

.el-button--primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.el-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.5);
}

.el-button--primary:active {
    transform: translateY(0);
}

/* 返回按钮样式 */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: linear-gradient(135deg, #f97381, #f87171);
    border: none;
    color: white;
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(249, 115, 113, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-button:hover {
    transform: translateY(-2px) translateX(-3px);
    box-shadow: 0 6px 10px rgba(249, 115, 113, 0.4);
}

.back-button i {
    font-size: 16px;
    margin-right: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .department-form-container {
        margin: 20px;
        padding: 25px;
    }

    .el-form {
        padding: 20px;
    }

    .form-title {
        font-size: 22px;
    }

    .back-button {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}